package org.nbict.iot.task.realtime.state;

import org.apache.storm.trident.tuple.TridentTuple;
import org.bson.Document;

import java.io.Serializable;

/**
 * 比对子
 * Created by songseven on 18/6/29.
 */
public interface Comparer extends Serializable {
    public Document compareAndSet(TridentTuple tuple, Document replaced);
}
